<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<?php $title = '用户登陆'; ?>
<head>
	<meta charset="UTF-8">
	<title><?php echo ($title); ?></title>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
	<link rel="stylesheet" href="/Application/Home/View//Public/static/css/weui.min.css"/>
    <link rel="stylesheet" href="/Application/Home/View//Public/static/css/jquery-weui.min.css"/>
    <link rel="stylesheet" href="/Application/Home/View//Public/static/css/custom.css"/>
    <style type="text/css">
		body{
			background:#f1f1f1;
			color:#a3a3a3;
			font-family:"Microsoft YaHei";
		}
		.bd{
			padding:20px;
		}
        li{list-style: none;}
		p{
			font-size: 13px;
		}
		.weui-cell_select-before .weui-cell__hd:before{
			border-width: 0px 2px 2px 0;
			margin-top: -6px;
		}
		.weui-cell_select-before .weui-cell__hd:after{border:none;}
        .sstmb {
            padding-bottom: 60px;
        }
        .foot-ul{
			text-align:center;
			margin-top: 1rem;
			padding:10px;
			background: #22a9fe;
			opacity: 0.9;
		}
		.foot-ul a{
			color: #fff;
		}
		.foot-ul a img{
			max-width: 24px;
		}
		.pinglun{
			padding: 0 2px;
			background: #ff5959;
			border-radius: 50px;
			color: #fff;
			position: absolute;
			top:-6px;
			left:73px;
			font-size: 13px;
		}
		
		
		.weui-cell__bd p{
		color:#6b6969;
		}
        
	</style>
</head>

<body ontouchstart>


 <form action="<?php echo U('login/login');?>" method="post" id='login_form'>   
   <div class="container js_container">

    </div>
<div class="page">
    <div class="bd">
    <div class="weui-cells">

      <div class="weui-cell weui-cell_select weui-cell_select-before">
	  <div class="weui_cell_hd"><img src="/Application/Home/View//Public/static/images/user.png" alt="" style="width:17px;margin-left:20px;display:block"></div>
        <div style="width:80px;" class="weui-cell__hd">
          <select class="weui-select" name="select2">
            <option value="1">+86</option>
            <option value="2">+80</option>
            <option value="3">+84</option>
            <option value="4">+87</option>
          </select>
        </div>
        <div style="padding-left:0;" class="weui-cell__bd">
          <input style="border-left:1px solid #d9d9d9;padding-left:10px;"  name="phone" class="weui-input" type="number" pattern="[0-9]*" placeholder="请输入号码">
        </div>
      </div>
	  
      <div style="height:44px;" class="weui-cell weui-cell_select weui-cell_select-before">
	  <div class="weui_cell_hd"><img src="/Application/Home/View//Public/static/images/pass.png" alt="" style="width:17px;margin-left:20px;display:block"></div>
        <div class="weui-cell__bd">
          <input class="weui-input" name='password' type="password" placeholder="请输入密码" >
        </div>
      </div>
	  
  </div>

        <div style="float:right;margin-top:.6rem;" class="weui_cell_ft">
            <a style="color:#a3a3a3;" href="<?php echo U('login/forget_pwd');?>"><div  class="weui_cells_title">忘记密码？</div></a>
        </div>

        <br>


        <div style="margin:2rem auto;width:12rem;border-radius:20px;" class='demos-content-padded'>
      <a style="background:#22a9fe;" href="javascript:$('#login_form').submit();" class="weui-btn weui-btn_primary">登录</a>
	  <!-- <p> -->
        <!-- <a href="javascript:;" class="weui-btn weui-btn_primary weui-btn_loading">正在加载...</a> -->
      <!-- </p> -->
		</div>
		
		        <div style="margin:2rem auto;width:12rem;border-radius:20px;" class='demos-content-padded'>
      <a style="background:#efeff4;" href="<?php echo U('login/register');?>" class="weui-btn weui-btn_default">新用户注册</a>
	  <!-- <p> -->
        <!-- <a href="javascript:;" class="weui-btn weui-btn_primary weui-btn_loading">正在加载...</a> -->
      <!-- </p> -->
		</div>
        
       <!-- <div style="margin-top:.6rem;text-align:center;" class="weui_cell_ft">
            <a style="color:#a3a3a3;" href="<?php echo U('login/register');?>"><div  class="weui_cells_title">没有帐号，我要注册</div></a>
        </div>-->
    </div>
</div>
	</form>
    <script src="/Application/Home/View//Public/static/js/jquery-2.1.4.js"></script>
    <script src="/Application/Home/View//Public/static/js/jquery-weui.min.js"></script>
    <script src="/Application/Home/View//Public/static/js/fastclick.js"></script>
    <script src="/Application/Home/View//Public/static/layer/layer.js"></script>
    <script src="/Application/Home/View//Public/static/js/jquery.form.js"></script>
    <script>
      $(function() {
        FastClick.attach(document.body);
      });
    </script>
</body>
</html>
<script>
/*
   function checkInput(){
          if($('input[name="phone"]').val() == ''){
              $.alert('请输入手机号');
              return false;
          }
          if($('input[name="password"]').val() == ''){
              $.alert('请输入密码');
              return false;
          }
    }
*/
  $(function(){
      $("#login_form").ajaxForm(function(data){
          if(data>0){
              location.href = "<?php echo U('Card/index');?>&userid="+data;
          }else if(data == -99){
              location.href = '<?php echo U("Login/account_up");?>';
          }else{
              $.alert('用户名或密码不正确，请重新输入!');
          }
      })
  })
</script>